﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace TwitCast
{
    /// <summary>
    /// Interaction logic for OAuthPin.xaml
    /// </summary>
    public partial class OAuthPin : Window
    {
        public string Pin
        {
            get { return oauthPin.Text; }
        }

        public static string ShowOAuthPin(Window owner)
        {
            OAuthPin pinWindow = new OAuthPin();
            
            pinWindow.Owner = owner;
            pinWindow.ShowDialog();

            return pinWindow.Pin;
        }

        public OAuthPin()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
    }
}
